package com.zhiche.lisa.tms.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * <p>
 * 在途异常附件信息
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
@TableName("lisa_shipment_enroute_exception_attachment")
public class ShipmentEnrouteExceptionAttachment extends Model<ShipmentEnrouteExceptionAttachment> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	@JsonSerialize(using=ToStringSerializer.class)
	private Long id;
    /**
     * 异常ID
     */
	@TableField("exception_id")
	private Long exceptionId;
    /**
     * 附件key
     */
	@TableField("attach_key")
	private String attachKey;
    /**
     * 附件名称
     */
	@TableField("attach_name")
	private String attachName;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;

	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private Long tenantId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getExceptionId() {
		return exceptionId;
	}

	public void setExceptionId(Long exceptionId) {
		this.exceptionId = exceptionId;
	}

	public String getAttachKey() {
		return attachKey;
	}

	public void setAttachKey(String attachKey) {
		this.attachKey = attachKey;
	}

	public String getAttachName() {
		return attachName;
	}

	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShipmentEnrouteExceptionAttachment{" +
			", id=" + id +
			", exceptionId=" + exceptionId +
			", attachKey=" + attachKey +
			", attachName=" + attachName +
			", gmtCreate=" + gmtCreate +
			"}";
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}
}
